<!DOCTYPE html">
<html>
<head>
<meta http-equiv="content-type" content="textml; charset=utf-8" />
<title>{$Think.session.loginuser.TrueName}的个人主页|中国互联网协会第五届全国大学生网络创新应用大赛</title>
<meta name="description" content="__DESCRIPTION__">
<meta name="keywords" content="__KEYWORDS__">
<link href="__CSS__/common.css" rel="stylesheet" type="text/css">
<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__CSS__/homepage.css">
<link href="__CSS__/thickbox.css" rel="stylesheet" type="text/css">
<script src="__JS__/Team/ga.js" type="text/javascript"></script>
<script src="__JS__/jquery-1.js" type="text/javascript"></script>
<script src="__JS__/Team/thickbox.js" type="text/javascript"></script>
<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
<title>中国互联网协会第五届全国大学生网络创新应用大赛</title>
<script type="text/javascript">
$(function () {
$("span.starDisplay").each(function () {
var num = $(this).text();
var text = "";
for (i = 0; i < num; i++) {
text += "★";
}
$(this).text(text);
$(this).show();
});

});
</script>
</head>
<body>
<div id="container"> 
    <!--header start--> 
    <include file="./Match/Tpl/Include/header.html" /> 
    <!--header end-->
    <div class="clear"> </div>
    <div id="sidebar">
        <div class="sidebar1"> 
		<h3>个人资料</h3>
        <p style="width: 218px; overflow: hidden; padding: 10px 29px 0px 29px;">
		<img alt="" src='__UPFILE__/Img/Avatar/{$userdetail[0].Avatar|default="default.gif"}' style="border: 1px solid #336afa;" alt="{$userdetail[0].TrueName}" height="140" width="140" />
		</p>
        <p style="font-weight: 600; line-height: 30px; color: #0066FF;" align="center"> <span id="ctl00_ContentPlaceHolder1_lbTrueName">{$userdetail[0].TrueName}</span></p>
		<p style="text-align: center; padding-bottom: 15px; border-bottom: 1px solid #b7e4f7;width: 95%; margin: 0 auto;">
				<a href="__URL__/editAvatar/id/{$id}" style="color: rgb(0, 153, 255);">上传头像</a>
		</p>
		
        <dl id="ctl00_ContentPlaceHolder1_dlstudent" class="list">
          <dd> <b>所在学校：</b><span id="ctl00_ContentPlaceHolder1_lbSchoolName">{$userdetail[0].OrgName}</span></dd>
          <dd> <b>所在学院：</b><span id="ctl00_ContentPlaceHolder1_lbColloge">{$res.College}</span></dd>
          <dd> <b>所学专业：</b><span id="ctl00_ContentPlaceHolder1_lbMajorCate">{$res.MajorName}</span></dd>
          <dd> <b>最后登录时间：</b><span id="ctl00_ContentPlaceHolder1_lbLastLoginTime">{$userdetail[0].LastLoginDate}</span></dd>
          <dd> <b>知识竞赛成绩：</b><span id="ctl00_ContentPlaceHolder1_lbScore">
		  <if condition="$paper neq 0">
		  {$paper.Score} /分
		  <else/>
		  未参加知识竞赛
		  </if>
		  </span></dd>
        </dl>
      </div>
	  
      <div id="ctl00_ContentPlaceHolder1_div1" class="sidebar2">
        <h3> 联系方式</h3>
         <div class="list1">
                <ul>
					<if condition="$usertype eq 1">
						<li style="width: 100px; text-align: center;"><a href="{:U('Student/Home/editBaseInfo')}">编辑个人信息</a></li>
						<li style="width: 100px; text-align: center;"><a href="{:U('Student/Home/editPassword/')}">修改用户密码</a></li>
						<li style="width: 100px; text-align: center;"><a href="{:U('Student/Home/addVolunteer/')}">申请成为志愿者</a></li>
						<li id="Resources" style="width: 100px; text-align: center;"><a href="{:U('Public/Resources/AddResources')}">添加学习资源</a> </li>
						<li id="exam" style="width: 100px; text-align: center;"><a href="{:U('Student/Index/answer')}">参加知识竞赛</a> </li>
						<li style="width: 100px; text-align: center;"><a href="{:U('Public/Mail/index')}">查看站内消息</a></li>
						<li style="width: 100px; text-align: center;"><a href="{:U('Public/Blog/AddBlog')}">提交参赛历程博文</a> </li>
						<li id="TeamSearch" style="width: 100px; text-align: center;"><a href="{:U('Team/Index/searchTeam')}">加入其他团队</a> </li>
						<li id="addresume" style="width: 100px; text-align: center;"><a href="__URL__/addResume/id/{$Think.session.loginuser.UserId}" >提交/修改简历</a> </li>
                    <else />
						<li style="width: 100px; text-align: center;"><a href="###"  openwindow="Public/Mail/smail/id/{$userdetail[0].UserId}"  title="发站内信" style="width: 105px; height: 25px; margin-left: 20px; font-size: 14px;">发站内信</a></li>
						<li style="width: 100px; text-align: center;"><span id="qq"><a href='http://wpa.qq.com/msgrd?v=3&site=qq&menu=yes&uin=127744580' target='_blank'><img style='border:solid 1px #dfdfdf;'  src='__IMG__/qq.gif' runat='server'></img></a></span></li>
					</if>
				</ul>
            </div>
      </div>
    </div>
    <div id="content">
		<h3> 
			<span num="1" style="cursor:pointer">我的博文</span>
			<span num="2" style="cursor:pointer">学习资源</span>
		</h3>
		<div class="ajaxload"></div>
    </div>
	
	<empty name="self">
    <div id="sidebarR">
      <div id="ctl00_ContentPlaceHolder1_sidebarR1" class="sidebarR1">
        <h3> 所创建的团队</h3>
		<empty name="res">
			<p style="font-weight:600px; line-height:30px;color:#0066FF;">
				<a href="javascript:void(0)" onclick="alert('请填写详细信息后参赛！');window.location.href='__APP__/Student/Index/detailForm'">你还未参赛，点击参赛!</a>
			</p>
		<else />
			<empty name="team">
			<p style="font-weight:600px; line-height:30px;color:#0066FF;">
				<a href="javascript:void(0)" ajaxaction="teamForm" ax="200" ay="-200" aw="500" title="创建团队">你还没有创建团队，点击这里创建一支属于自己的团队吧!</a>
			</p>
			<else />
            <span id="ctl00_ContentPlaceHolder1_lbcreateteam">
			<p style="width:218px; padding:10px 80px 0 80px; overflow:hidden;">
			<a href="{:U('Team/Home/index')}/id/{$team.Id}">
			<img src="__UPFILE__/Img/TeamFace/{$team.Logo}" onerror="this.src= '__IMG__/default.gif';" alt="0" width="60" height="60" /></a></p>
			<p align="center" style="font-weight:600px; line-height:30px;color:#0066FF;"><a href="{:U('Team/Home/index')}/id/{$team.Id}">{$team.Name}</a></p></span>
			</empty>
		</empty>
		</div>
      <div id="ctl00_ContentPlaceHolder1_sidebarR2" class="sidebarR1">
        <h3> 所在的团队</h3>
		<empty name="res">
				<p style="font-weight:600px; line-height:30px;color:#0066FF;">
					<a href="javascript:void(0)" onclick="alert('请填写详细信息后参赛！');window.location.href='__APP__/Student/Index/detailForm'">你还未参赛，点击参赛!</a>
				</p>
		<else />
			<empty name="inteam">
				<p style="font-weight:600px; line-height:30px;color:#0066FF;">
					<a href="__APP__/Team/Index/searchTeam">你暂时还没有加入到其他团队，现在就去搜索团队吧!</a>
				</p>
			<else />
			<volist name="arr" id="row">
				<p style="width: 218px; padding: 10px 80px 0 80px; overflow: hidden;"> <a href="{:U('Team/Home/index')}/id/{$row.Id}"> <img onerror="this.src = '__IMG__/Team/default.gif';" src="__UPFILE__/Img/TeamFace/{$row.Logo}" alt="0" height="60" width="60"></a></p>
				<p style="font-weight: 600px; line-height: 30px; color: #0066FF;" align="center"> <a href="{:U('Team/Home/index')}/id/{$row.Id}"> {$row.Name}</a></p>
			</volist>
			</empty>
		</empty>
      </div>
    </div>
	<else />
		<div id="sidebarR">
      <div id="ctl00_ContentPlaceHolder1_sidebarR1" class="sidebarR1">
        <h3> 所创建的团队</h3>
			<empty name="team">
			<else />
            <span id="ctl00_ContentPlaceHolder1_lbcreateteam">
			<p style="width:218px; padding:10px 80px 0 80px; overflow:hidden;">
			<a href="{:U('Team/Home/index')}/id/{$team.Id}">
			<img src="__UPFILE__/Img/TeamFace/{$team.Logo}" onerror="this.src= '__IMG__/default.gif';" alt="0" width="60" height="60" /></a></p>
			<p align="center" style="font-weight:600px; line-height:30px;color:#0066FF;"><a href="{:U('Team/Home/index')}/id/{$team.Id}">{$team.Name}</a></p></span>
			</empty>
		</div>
      <div id="ctl00_ContentPlaceHolder1_sidebarR2" class="sidebarR1">
        <h3> 所在的团队</h3>
			<empty name="inteam">
			<else />
				<volist name="arr" id="row">
					<p style="width: 218px; padding: 10px 80px 0 80px; overflow: hidden;"> <a href="{:U('Team/Home/index')}/id/{$row.Id}"> <img onerror="this.src = '__IMG__/Team/default.gif';" src="__UPFILE__/Img/TeamFace/{$row.Logo}" alt="0" height="60" width="60"></a></p>
					<p style="font-weight: 600px; line-height: 30px; color: #0066FF;" align="center"> <a href="{:U('Team/Home/index')}/id/{$row.Id}"> {$row.Name}</a></p>
				</volist>
			</empty>
      </div>
    </div>
	</empty>
    <div class="clear"> </div>
    <!--footer start--> 
    <include file="./Match/Tpl/Include/footer.html" /> 
    <!--footer end--> 
	<include file="./Match/Tpl/Include/openwindow.html" />
</div>
</body>
</html>
<script type="text/javascript">
	$(function(){
		$('.ajaxload').load("__URL__/a1/id/{$id}/page/1/type/1");
		$("span[num]").click(function(){
			var num=$(this).attr("num");
			$('.ajaxload').load("__URL__/a1/id/{$id}/page/1/type/"+num);
		});
	});
</script>